ERF

Section: C Library Functions (3)
Index Return to Main Contents

BSD mandoc
BSD 4.3  

NAME

erf erfc - error function operators  

SYNOPSIS

Fd #include <math.h> Ft double Fn erf double x Ft double Fn erfc double x  

DESCRIPTION

These functions calculate the error function of Fa x .

The Fn erf calculates the error function of x; where

erf(x) = 2/sqrt(pi)*integral from 0 to x of exp(-t*t) dt.

The Fn erfc function calculates the complementary error function of Fa x ; that is Fn erfc subtracts the result of the error function Fn erf x from 1.0. This is useful, since for large Fa x places disappear.  

SEE ALSO

math(3)  

HISTORY

The Fn erf and Fn erfc functions appeared in BSD 4.3


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
HISTORY

This document was created by man2html, using the manual pages.
Time: 00:35:29 GMT, March 30, 2022